description = "The characters begin to rotate horizontally one after another, faster and faster, and finally speed down till stop when the maximum speed is reached.";
version = "1.00";
bin = "Revolving.bin";
========== Description Part End ==========
========== Parameter Part Begin ==========
$nCharacterCount(EDIT,INT,1,1 10000,"Total Characters ","The total characters using the special effect. The value is defined by the selected characters in the movie, but can not be changed in the property box.");
$nFrameCount(EDIT,INT,3,3 3,"Total Frames","It indicates the total frames of actions. The total frames of the effect is probably more than it.");
$nInterval(EDIT,INT,5,1 10000,"Interval","The time difference between the former character and the latter one beginning to change.");
$bDirection(LIST,INT,1,"Left":1 "Right":0,"Direction","To control characters to change from left to right, or right to left.");
========== Parameter Part End ==========
========== Function Part Begin ==========
nCharacterCount = 16;
nFrameCount = 8;
nInterval = 5;
bDirection = true;
nIsRun = new Array(nCharacterCount );
nRotateArray = new Array(nCharacterCount);
nRadiusArray = new Array(nCharacterCount);
nStateArray = new Array(nCharacterCount);
nSpeedArray = new Array(nCharacterCount);
bSignArray = new Array(nCharacterCount);
for( i = 1; i <= nCharacterCount; i++)
{
this["c" + i]._alpha = 100;
this["c" + i]._rotation = 0;
//this["c" + i]._xscale = 100;
this["c" + i]._yscale = 100;
nStateArray[i - 1] = 90;
nSpeedArray[i -1] = 0.1;
bSignArray[i -1] = true;
}
for (i = 1; i <= nCharacterCount + 1; i++)
{
if(bDirection)
{
if(i == 1)
nIsRun[0] = 0;
else
{
nIsRun[i - 1] = nIsRun[i - 2];
nIsRun[i - 1] += nInterval;
}
}
else
{
if(i == 1)
nIsRun[nCharacterCount -1] = 0;
else
{
nIsRun[nCharacterCount - i] = nIsRun[nCharacterCount - (i -1) ];